package cn.tedu.zx.sso.pojo.entity;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;
@Data
public class AdminAuthority implements Serializable, GrantedAuthority {

    /**
     * 数据库无用字段表，用户转存权限
     */
    private String value;

    /**
     *写入数据
     */
    private void setAuthority(String authority){
        this.value=authority;
    }
    @Override
    public String getAuthority() {
        return value;
    }
}
